package com.qdxwx.data.mapper.company;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.company.CompanyAccount;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface CompanyAccountMapper {

    int insert(CompanyAccount account);

    int income(int companyId, int amount);

    int deduct(int companyId, int amount);

    int update(CompanyAccount account);

    int deleteById(int companyId);

    CompanyAccount selectById(int companyId);

    List<CompanyAccount> selectList(@Param("e") CompanyAccount account, @Param("page") PageRequest page);

    long selectCount(@Param("e") CompanyAccount account);
}
